// eslint-disable-next-line
import { UserLayout, BasicLayout, BlankLayout, PageView, RouteView } from '@/layouts'
import { bxAnaalyse, } from '@/core/icons'

// const RouteView = {
//   name: 'RouteView',
//   render: h => h('router-view')
// }

export const asyncRouterMap = [
    {
        path: '/',
        name: 'index',
        component: BasicLayout,
        meta: { title: '主页' },
        redirect: '/',
        children: [
            //仪表盘
            {
                path: '/DashBoard',
                name: 'DashBoard',
                component: RouteView,
                redirect: '/DashBoard',
                meta: { title: "运维管理(DashBoard)", i18n: "menu.DashBoard", icon: 'dashboard', permission: ['DashBoard'] },
                hideChildrenInMenu: true, // 强制显示 MenuItem 而不是 SubMenu
                children: [
                    {
                        path: '/DashBoard',
                        name: 'DashBoard',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/DashBoard'),
                        meta: { title: 'DPIA统计', permission: ['DashBoard'] },
                    },
                    {
                        path: '/DashBoard/Domain',
                        name: 'Domain',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/DashBoard/Domain'),
                        meta: { title: 'Domain完成的DPIA统计', permission: ['DashBoard'] },
                    },
                    {
                        path: '/DashBoard/dpia/overall',
                        name: 'dpiaoverall',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/DashBoard/dpia/overall'),
                        meta: { title: '整体评估', permission: ['DashBoard'] },
                    },
                    {
                        path: '/DashBoard/dpia/report',
                        name: 'report',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/DashBoard/dpia/report'),
                        meta: { title: '查看', permission: ['DashBoard'] },
                    },
                    {
                        path: '/DashBoard/operate',
                        name: 'operate',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/DashBoard/Domain/operate'),
                        meta: { title: '运营记录', permission: ['DashBoard'] },
                    },
                ]
            },
            {
                path: '/',
                name: 'myPortal',
                component: RouteView,
                redirect: '/Portal',
                meta: { title: "首页(Portal)", i18n: "menu.Portal", icon: 'bank', permission: ['userportal'] },
                locale: true,
                children: [
                    {
                        path: '/Portal',
                        name: 'myPortal',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/Portal'),
                        meta: { title: '首页(Portal)列表', permission: ['userportal'] }
                    },
                    {
                        path: '/Portal/detail',
                        name: 'myPortalDetail',
                        component: () => import(/* webpackChunkName: "dataProcessingDetail" */'@/views/Portal/detail'),
                        meta: { title: '首页(Portal)详情', permission: ['userportal'] }
                    },
                    {
                        path: '/Portal/dpia/questionnairePortal',
                        name: 'questionnairePortal',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/Portal/dpia/questionnairePortal'),
                        meta: { title: '答题', permission: ['userportal'] },
                    },
                    {
                        path: '/Portal/dpia/review',
                        name: 'dpiareview',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/Portal/dpia/review'),
                        meta: { title: '查看', permission: ['userportal'] },
                    },
                    {
                        path: '/Portal/dpia/estimate',
                        name: 'dpiaestimate',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/Portal/dpia/estimate'),
                        meta: { title: 'DCO评估', permission: ['userportal'] },
                    },
                    {
                        path: '/Portal/dpia/overall',
                        name: 'dpiaoverall',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/Portal/dpia/overall'),
                        meta: { title: '整体评估', permission: ['userportal'] },
                    },
                    {
                        path: '/Portal/dpia/report',
                        name: 'report',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/Portal/dpia/report'),
                        meta: { title: '查看', permission: ['userportal'] },
                    },
                ]
            },
            // dcoPortal
            {
                path: '/dcoPortal',
                name: 'dcoPortal',
                component: () => import(/* webpackChunkName: "dcoPortal" */'@/views/dcoPortal'),
                redirect: '/dcoPortal/myTasks',
                meta: { title: 'DCO Portal', i18n: "menu.dcoPortal", icon: 'inbox', permission: ['dcoportal'] },
                hideChildrenInMenu: true, // 强制显示 MenuItem 而不是 SubMenu
                children: [
                    {
                        path: '/dcoPortal/myTasks',
                        name: 'myTasks',
                        component: () => import(/* webpackChunkName: "dcoPortal" */'@/views/dcoPortal/myTasks'),
                        meta: { title: 'myTasks', permission: ['dcoportal'] }
                    },
                    {
                        path: '/dcoPortal/groupTasks',
                        name: 'groupTasks',
                        component: () => import(/* webpackChunkName: "dcoPortal" */'@/views/dcoPortal/groupTasks'),
                        meta: { title: 'groupTasks', permission: ['dcoportal'] }
                    },
                    {
                        path: '/dcoPortal/dcoQuestionnaire',
                        name: 'dcoQuestionnaire',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dcoPortal/dpia/dcoQuestionnaire'),
                        meta: { title: '答题', permission: ['dcoportal'] },
                    },
                    {
                        path: '/dcoPortal/dcoReview',
                        name: 'dcoReview',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dcoPortal/dpia/review'),
                        meta: { title: '查看', permission: ['dcoportal'] },
                    },
                    {
                        path: '/dcoPortal/estimate',
                        name: 'dcoEstimate',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dcoPortal/dpia/estimate'),
                        meta: { title: '评估', permission: ['dcoportal'] },
                    },
                    {
                        path: '/dcoPortal/overall',
                        name: 'dcoOverall',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dcoPortal/dpia/overall'),
                        meta: { title: '整体评估', permission: ['dcoportal'] },
                    },
                    {
                        path: '/dcoPortal/report',
                        name: 'report',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dcoPortal/dpia/report'),
                        meta: { title: '预览报告', permission: ['dcoportal'] },
                    },

                ]
            },
            // 我的任务
            // {
            //     path: '/myTasks',
            //     name: 'myTasks',
            //     component: () => import(/* webpackChunkName: "system" */'@/views/myTasks'),
            //     meta: { title: "任务管理(TASK)", i18n: "menu.dgp", icon: 'carry-out', permission: ['mytask'] },
            //     locale: true,
            //     children: [
            //         {
            //             path: '/task/report',
            //             name: 'taskReport',
            //             component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/report'),
            //             meta: { title: '预览', permission: ['mytask'] },
            //         },
            //     ]
            // },

            // 数据处理活动（RPA）
            {
                path: '/rpa',
                name: 'rpa',
                component: RouteView,
                redirect: '/rpa/service',
                meta: { title: '数据处理活动(RPA)', i18n: "menu.account.logout112255", icon: 'hdd', permission: ['rpa'] },
                hideChildrenInMenu: true, // 强制显示 MenuItem 而不是 SubMenu
                children: [
                    {
                        path: '/rpa/service',
                        name: 'rpaService',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/rpa'),
                        meta: { title: '数据处理活动列表', permission: ['rpa'] }
                    },
                    {
                        path: '/rpa/detail',
                        name: 'rpaDetail',
                        component: () => import(/* webpackChunkName: "dataProcessingDetail" */'@/views/rpa/detail'),
                        meta: { title: '数据处理活动详情', permission: ['rpa'] }
                    },
                ]
            },
            // 数据保护影响评估（DPIA）
            {
                path: '/dpia',
                name: 'dpia',
                component: RouteView,
                redirect: '/dpia/service',
                meta: { title: '数据保护影响评估(DPIA)', i18n: "menu.account.logout112266", icon: 'book', permission: ['dpia'] },
                hideChildrenInMenu: true, // 强制显示 MenuItem 而不是 SubMenu
                children: [
                    {
                        path: '/dpia/service',
                        name: 'dpiaService',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/indexLists'),
                        meta: { title: '数据保护影响评估列表', permission: ['dpia'] }
                    },
                    {
                        path: '/dpia/question',
                        name: 'dpiaQuestion',
                        component: () => import(/* webpackChunkName: "dataProcessingDetail" */'@/views/dataAssessment/dpia/onequestion/questionnaire'),
                        meta: { title: '数据保护影响评估答题', permission: ['dpia'] },
                    },
                    //   特殊页面
                    {
                        path: '/dpia/RpaIfCompletedPIA',
                        name: 'dpiaQuestion',
                        component: () => import(/* webpackChunkName: "dataProcessingDetail" */'@/views/dataAssessment/dpia/onequestion/RpaIfCompletedPIA'),
                        meta: { title: '数据保护影响评估答题', permission: ['dpia'] },
                    },
                    //   特殊页面
                    {
                        path: '/dpia/RpaNoPIOrImportantInvolved',
                        name: 'dpiaQuestion',
                        component: () => import(/* webpackChunkName: "dataProcessingDetail" */'@/views/dataAssessment/dpia/onequestion/RpaNoPIOrImportantInvolved'),
                        meta: { title: '数据保护影响评估答题', permission: ['dpia'] },
                    },
                    {
                        path: '/dpia/questiontwo',
                        name: 'dpiaQuestiontwo',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/twoquestion/questiontwo'),
                        hidden: true,
                    },

                    {
                        path: '/dpia/report',
                        name: 'report',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/report'),
                        meta: { title: '查看', permission: ['dpia'] },
                    },

                    {
                        path: '/dpia/onequestion/reviewPIA',
                        name: 'dpiaQuestionthere',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/onequestion/reviewPIA'),
                        meta: { title: '查看', permission: ['dpia'] },
                    },
                    {
                        path: '/dpia/onequestion/reviewlved',
                        name: 'dpiaQuestionthere',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/onequestion/reviewlved'),
                        meta: { title: '查看', permission: ['dpia'] },
                    },
                    {
                        path: '/dpia/onequestion/review',
                        name: 'dpiaQuestionthere',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/onequestion/review'),
                        meta: { title: '查看', permission: ['dpia'] },
                    },
                    {
                        path: '/dpia/onequestion/estimate',
                        name: 'dpiaQuestionestimate',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/onequestion/estimate'),
                        meta: { title: 'DCO评估', permission: ['dpia'] },
                    }, {
                        path: '/dpia/onequestion/estimatePIA',
                        name: 'dpiaQuestionestimate',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/onequestion/estimatePIA'),
                        meta: { title: 'DCO评估', permission: ['dpia'] },
                    }, {
                        path: '/dpia/onequestion/estimatlvede',
                        name: 'dpiaQuestionestimate',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/onequestion/estimatlvede'),
                        meta: { title: 'DCO评估', permission: ['dpia'] },
                    },
                    {
                        path: '/dpia/onequestion/overall',
                        name: 'dpiaQuestionoverall',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/onequestion/overall'),
                        meta: { title: '整体评估', permission: ['dpia'] },
                    },
                    {
                        path: '/dpia/onequestion/overallvede',
                        name: 'dpiaQuestionoverall',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/onequestion/overallvede'),
                        meta: { title: '整体评估', permission: ['dpia'] },
                    }, {
                        path: '/dpia/onequestion/overallPIa',
                        name: 'dpiaQuestionoverall',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/onequestion/overallPIa'),
                        meta: { title: '整体评估', permission: ['dpia'] },
                    },
                    {
                        path: '/dpia/onequestion/success',
                        name: 'dpiaSuccess',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/onequestion/success'),
                        hidden: true,
                    },
                    {
                        path: '/dpia/onequestion/rpaaround',
                        name: 'dpiaRpaaround',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/dataAssessment/dpia/onequestion/rpaaround'),
                        hidden: true,
                    },
                    {
                        path: '/dpia/Rpa/detail',
                        name: 'myPortalDetail',
                        component: () => import(/* webpackChunkName: "dataProcessingDetail" */'@/views/dataAssessment/Rpa/detail'),
                        meta: { title: '详情', permission: ['dpia'] }
                    },
                ]
            },

            //风险管理(RISK)  
            {
                path: '/fengxianguanli',
                name: 'fengxianguanli',
                component: RouteView,
                redirect: '/fengxianguanli/list',
                meta: { title: '风险管理(RISK)', i18n: "menu.account.logout112277", icon: 'info-circle', permission: ['risk'] },
                hideChildrenInMenu: true, // 强制显示 MenuItem 而不是 SubMenu
                children: [
                    {
                        path: '/fengxianguanli/list',
                        name: 'fengxianguanliList',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/risk'),
                        meta: { title: 'RISK详情', i18n: "menu.account.logout112277", permission: ['risk'] }
                    },
                    {
                        path: '/fengxianguanli/read',
                        name: 'fengxianguanliRead',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/risk/read'),
                        meta: { title: 'RISK详情', i18n: "menu.account.logout112277", permission: ['risk'] }
                    },
                ]
            },

            // 数据泄露
            {
                path: '/breach',
                name: 'breach',
                component: RouteView,
                redirect: '/breach/list',
                meta: { title: '数据泄露', i18n: "menu.title.breach", icon: 'bug', permission: ['databreach'] },
                hideChildrenInMenu: true, // 强制显示 MenuItem 而不是 SubMenu
                children: [
                    {
                        path: '/breach/list',
                        name: 'breachList',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/breach'),
                        meta: { title: '数据泄露', i18n: "menu.title.breach", permission: ['databreach'] }
                    },
                    {
                        path: '/breach/register',
                        name: 'breachRegister',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/breach/steps'),
                        meta: { title: '数据泄露', i18n: "menu.title.breach", permission: ['databreach'] }
                    },
                ]
            },

            // 数据资产DI
            {
                path: '/inventoryDI',
                name: 'inventoryDI',
                component: () => import(/* webpackChunkName: "inventoryDI" */'@/views/inventoryDI'),
                meta: { title: '数据盘库表(DI)', i18n: "menu.account.logout112244", icon: 'contacts', keepAlive: true, permission: ['di'] },
            },

            // appid管理
            {
                path: '/agreements',
                name: 'agreements',
                component: () => import(/* webpackChunkName: "agreements" */'@/views/appid'),
                meta: { title: '应用管理(APPID)', i18n: "menu.account.logout112299", icon: 'audit', keepAlive: true, permission: ['appid'] },
            },


            //数据发现(DD)  
            {
                path: '/find',
                name: 'find',
                component: RouteView,
                redirect: '/find/service',
                meta: { title: '数据发现(DD)', i18n: "menu.account", icon: 'info-circle', permission: ['ddsearch'] },
                hideChildrenInMenu: true, // 强制显示 MenuItem 而不是 SubMenu
                children: [
                    {
                        path: '/find/service',
                        name: 'findService',
                        component: () => import(/* webpackChunkName: "dataProcessingService" */'@/views/find'),
                        meta: { title: '数据发现', i18n: "menu.account", permission: ['ddsearch'] }
                    },
                    {
                        path: '/find/detail',
                        name: 'findDetail',
                        component: () => import(/* webpackChunkName: "dataProcessingDetail" */'@/views/find/detail'),
                        meta: { title: '数据发现详情', i18n: "menu.account1122", permission: ['ddsearch'] }
                    },
                ]
            },

            // 分类分级 (dcc)
            {
                path: '/classification',
                name: 'classification',
                component: () => import(/* webpackChunkName: "classification" */'@/views/classification'),
                redirect: '/classification/classificationList',
                meta: { title: '数据分类分级(DCC)', i18n: "menu.account.logout112233", icon: 'cluster', permission: ['dcc'] },
                hideChildrenInMenu: true, // 强制显示 MenuItem 而不是 SubMenu
                children: [
                    {
                        path: '/classification/classify',
                        name: 'classificationClassify',
                        component: () => import(/* webpackChunkName: "classification" */'@/views/classification/classify'),
                        meta: { title: '数据分类', permission: ['dcc'] }
                    },
                    {
                        path: '/classification/classificationList',
                        name: 'classificationList',
                        component: () => import(/* webpackChunkName: "classification" */'@/views/classification/classificationList'),
                        meta: { title: '分类分级设置', permission: ['dcc'] }
                    },
                    {
                        path: '/classification/statistics',
                        name: 'statistics',
                        component: () => import(/* webpackChunkName: "classification" */'@/views/classification/statistics'),
                        meta: { title: '分类分级统计', permission: ['dcc'] }
                    },
                ]
            },
            {
                path: '/filing',
                name: 'filing',
                component: () => import(/* webpackChunkName: "inventoryDI" */'@/views/filing'),
                meta: { title: '合规报告和备案', i18n: "menu.account.logout9090", icon: 'fund', keepAlive: true, permission: ['filing'] },
            },
            // 系统管理
            
            {
                path: '/system',
                name: 'system',
                component: () => import(/* webpackChunkName: "system" */'@/views/system'),
                redirect: '/system/userList',
                meta: { title: '用户权限配置', i18n: "menu.account.logout112288", icon: 'bars', permission: ['userconfig'] },
                hideChildrenInMenu: true, // 强制显示 MenuItem 而不是 SubMenu
                children: [
                    {
                        path: '/system/userList',
                        name: 'userList',
                        component: () => import(/* webpackChunkName: "system" */'@/views/system/userList'),
                        meta: { title: '用户管理', permission: ['userconfig'] }
                    },
                    {
                        path: '/system/roles',
                        name: 'roles',
                        component: () => import(/* webpackChunkName: "system" */'@/views/system/roles'),
                        meta: { title: '角色管理', permission: ['userconfig'] }
                    },
                    {
                        path: '/system/function',
                        name: 'function',
                        component: () => import(/* webpackChunkName: "system" */'@/views/system/function'),
                        meta: { title: '功能管理', permission: ['userconfig'] }
                    },
                    {
                        path: '/system/jurisdiction',
                        name: 'jurisdiction',
                        component: () => import(/* webpackChunkName: "system" */'@/views/system/jurisdiction'),
                        meta: { title: '权限管理', permission: ['userconfig'] }
                    },
                    {
                        path: '/system/ApproverGroups',
                        name: 'ApproverGroups',
                        component: () => import(/* webpackChunkName: "system" */'@/views/system/ApproverGroups'),
                        meta: { title: '审批组', permission: ['userconfig'] }
                    },
                    {
                        path: '/system/dataBreachGroups',
                        name: 'dataBreachGroups',
                        component: () => import(/* webpackChunkName: "system" */'@/views/system/dataBreachGroups'),
                        meta: { title: '泄露处理组', permission: ['userconfig'] }
                    },
                ]
            },

            // 管理端
            {
                path: '/dataAssessment',
                name: 'dataAssessment',
                component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment'),
                redirect: '/dataAssessment/dataController',
                meta: { title: '系统管理配置', i18n: "menu.account.logout11229922", icon: 'setting', permission: ['sysconfig'] },
                hideChildrenInMenu: true, // 强制显示 MenuItem 而不是 SubMenu
                children: [
                    {
                        path: '/dataAssessment/dataAssessmentList',
                        name: 'dataAssessmentList',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/dataAssessmentList'),
                        meta: { title: 'DPIA模板列表', permission: ['sysconfig'] }
                    },
                    {
                        path: '/dataAssessment/questionList',
                        name: 'questionList',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/questionList'),
                        meta: { title: 'DPIA题库管理', permission: ['sysconfig'] }
                    },
                    {
                        path: '/dataAssessment/requirementsList',
                        name: 'requirementsList',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/requirementsList'),
                        meta: { title: 'DPIA安全要求', permission: ['sysconfig'] }
                    },
                    {
                        path: '/classification/optionsGrade',
                        name: 'optionsGrade',
                        component: () => import(/* webpackChunkName: "user" */'@/views/classification/options/optionsGrade'),
                        meta: { title: '数据等级设置', icon: 'setting', permission: ['sysconfig'] },
                    },
                    {
                        path: '/classification/optionsSensitivity',
                        name: 'optionsSensitivity',
                        component: () => import(/* webpackChunkName: "user" */'@/views/classification/options/optionsSensitivity'),
                        meta: { title: '数据敏感度设置', icon: 'setting', permission: ['sysconfig'] },
                    },
                    {
                        path: '/classification/optionsProtectionLevel',
                        name: 'optionsProtectionLevel',
                        component: () => import(/* webpackChunkName: "user" */'@/views/classification/options/optionsProtectionLevel'),
                        meta: { title: '数据保护等级设置', icon: 'setting', permission: ['sysconfig'] },
                    },
                    {
                        path: '/dataAssessment/dataProcessor',
                        name: 'dataProcessor',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/dataProcessor'),
                        meta: { title: '数据处理者', permission: ['sysconfig'] }
                    },
                    {
                        path: '/dataAssessment/city',
                        name: 'dataAssessmentCity',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/city'),
                        meta: { title: '城市', permission: ['sysconfig'] }
                    },
                    {
                        path: '/dataAssessment/dccManage',
                        name: 'dataAssessmentDccManage',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/dccManage'),
                        meta: { title: '数据分类分级管理', permission: ['sysconfig'] }
                    },
                    {
                        path: '/dataAssessment/dataController',
                        name: 'dataAssessmentDataController',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/dataController'),
                        meta: { title: '数据控制者管理', permission: ['sysconfig'] }
                    },
                    {
                        path: '/dataAssessment/dataStorageLocation',
                        name: 'dataStorageLocation',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/dataStorageLocation'),
                        meta: { title: '数据存放地', permission: ['sysconfig'] }
                    },
                    {
                        path: '/dataAssessment/collectionChannels',
                        name: 'collectionChannels',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/collectionChannels'),
                        meta: { title: '收集渠道', permission: ['sysconfig'] }
                    },
                    {
                        path: '/dataAssessment/dataProcessingActivityStage',
                        name: 'dataProcessingActivityStage',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/dataProcessingActivityStage'),
                        meta: { title: '数据处理活动阶段', permission: ['sysconfig'] }
                    },
                    {
                        path: '/dataAssessment/dataProcessingActivityType',
                        name: 'dataProcessingActivityType',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/dataProcessingActivityType'),
                        meta: { title: '数据处理活动类型', permission: ['sysconfig'] }
                    },
                    // 帮助列表管理
                    {
                        path: '/dataAssessment/getHelp',
                        name: 'getHelp',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/getHelp'),
                        meta: { title: '帮助列表管理', permission: ['sysconfig'] }
                    },
                    // 应用类型管理
                    {
                        path: '/dataAssessment/typeManagement',
                        name: 'typeManagement',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/typeManagement'),
                        meta: { title: '应用类型管理', permission: ['sysconfig'] }
                    },
                    // icl
                    {
                        path: '/dataAssessment/icl',
                        name: 'icl',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/icl'),
                        meta: { title: 'icl数据推送', permission: ['sysconfig'] }
                    },
                    {
                        path: '/dataAssessment/emailManagement',
                        name: 'emailManagement',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/emailManagement'),
                        meta: { title: '邮件模板配置', permission: ['sysconfig'] }
                    },
                    {
                        path: '/dataAssessment/actionManagement',
                        name: 'actionManagement',
                        component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/actionManagement'),
                        meta: { title: '数据泄露措施管理', permission: ['sysconfig'] }
                    },
                    // 自动推送通知模板
                    // {
                    //     path: '/dataAssessment/notification',
                    //     name: 'notification',
                    //     component: () => import(/* webpackChunkName: "system" */'@/views/dataAssessment/notification'),
                    //     meta: { title: '自动推送通知模板', permission: ['sysconfig'] }
                    // },
                ]
            }
        ]
    },
    {
        path: '*',
        redirect: '/404',
        hidden: true
    }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
    // {
    //   path: '/login',
    //   component: () => import(/* webpackChunkName: "agreements" */'@/views/login/dpia/questionnaire'),
    //   redirect: '/sign',
    //   hidden: true,
    //   children: [
    //     {
    //       path: '/sign',
    //       name: 'sign',
    //       component: () => import(/* webpackChunkName: "login" */ '@/views/login/sign')
    //     },
    //   ]
    // },
    {
        path: '/sign',
        name: 'sign',
        component: () => import(/* webpackChunkName: "login" */ '@/views/login/sign'),
    },
    {
        path: '/simulatelogin',
        name: 'simulatelogin',
        component: () => import(/* webpackChunkName: "login" */ '@/views/login/simulatelogin'),
    },
    // Exception
    {
        path: '/exception',
        name: 'exception',
        component: RouteView,
        redirect: '/403',
        hidden: true,
        meta: { title: '异常页', icon: 'warning' },
        children: [
            {
                path: '/403',
                name: '403',
                component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/403'),
                meta: { title: '403' }
            },
            {
                path: '/404',
                name: '404',
                component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404'),
                meta: { title: '404' }
            },
            {
                path: '/500',
                name: '500',
                component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/500'),
                meta: { title: '500' }
            }
        ]
    },
    {
        path: '/404',
        component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
    },
    {
        path: '/reviewFile',
        name: 'reviewFile',
        component: () => import(/* webpackChunkName: "reviewFile" */'@/components/fileReview/index.vue'),
        meta: { title: "文件预览", i18n: "public.reviewfile", icon: 'carry-out' },
        locale: true,
    },
]
